package com.cictec.cloud.app.appserver.rest;

import com.cictec.cloud.app.appserver.ribbon.IConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author :zoboy
 * @Description:
 * @ Date: Created in 2020-05-09 13:33
 */
@RestController
@RequestMapping("/app/ribbon")
public class DcRibbonController {

    @Autowired
    IConsumerService consumerService;


    @GetMapping("/consumer")
    public String consumer1() {
        return consumerService.consumer();
//        return restTemplate.getForObject("http://network.bus.order.server/dc", String.class);
    }

}
